package com.java.test.JVM.classLoader;

/**
 * @author TonyOne
 * @version 1.0
 * @desc
 * @date 2018/10/13 10:58
 * @company
 */

import java.util.Random;

/**
 * @use 探寻Java的Class类内幕
 * @author bird
 * https://blog.csdn.net/a352193394/article/details/6844941
 */

class Initable{
    public static final int staticFinal = 47;//他的值不变
    public static final int staticFinal2 = //他的值是变化的
            new Random().nextInt(1000);
    static {
        System.out.println("初始化 Initable");
    }
}

class Initable2{
    public static int stationNonFinal = 147;//注意没有final
    static{
        System.out.println("初始化 Initable2");
    }
}

class Initable3{
    public static int staticNonFinal = 74;
    static{
        System.out.println("初始化 Intiable3");
    }
}
